Since we now display the source icon and an image for the notification,
it's quite common to set an icon from a name. Therefore add a
convenience property to do so.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3156>
this.emit('updated', params.clear);
}
+ get iconName() {
+ if (this.gicon instanceof Gio.ThemedIcon)
+ return this.gicon.iconName;
+ else
+ return null;
+ }
+
+ set iconName(iconName) {
+ this.gicon = new Gio.ThemedIcon({name: iconName});
+ }
+
// addAction:
// @label: the label for the action's button
// @callback: the callback for the action